<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Tolc: app/common/init.php Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../tolc_logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Tolc
   &#160;<span id="projectnumber">v 1.00</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
      <li><a href="../../globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d6/d75/init_8php_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">init.php</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../d6/d75/init_8php.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;&lt;?php</div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="keywordflow">if</span>(strlen(session_id()) &lt; 1) {</div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;        session_start();</div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;        session_regenerate_id();</div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;}</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="keywordflow">if</span>(!in_array($_SERVER[<span class="stringliteral">&#39;SERVER_NAME&#39;</span>], <a class="code" href="../../de/dc4/settings_8dist_8php.html#af21c418e4c577deb3a9ea7299156ae35">$tolc_conf</a>[<span class="stringliteral">&#39;pref_valid_origins&#39;</span>])) {</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;        print <span class="stringliteral">&#39;Access denied - Invalid origin&#39;</span>;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;        exit;</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;}</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;error_reporting(<a class="code" href="../../de/dc4/settings_8dist_8php.html#af21c418e4c577deb3a9ea7299156ae35">$tolc_conf</a>[<span class="stringliteral">&#39;pref_error_reporting&#39;</span>]);</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;set_error_handler(<span class="stringliteral">&#39;error_handler&#39;</span>);</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#af034bd981d8cf0b3fd21b1a5e35c9ad1">   24</a></span>&#160;<a class="code" href="../../d6/d75/init_8php.html#af034bd981d8cf0b3fd21b1a5e35c9ad1">$site_data_folder</a> = <a class="code" href="../../de/dc4/settings_8dist_8php.html#af21c418e4c577deb3a9ea7299156ae35">$tolc_conf</a>[<span class="stringliteral">&#39;domains_data_folder&#39;</span>][$_SERVER[<span class="stringliteral">&#39;SERVER_NAME&#39;</span>]];</div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a68e7e8cd14c6ec9ff950456aeddc5dec">   25</a></span>&#160;define(<span class="stringliteral">&#39;CONST_DATA_FOLDER_REGEX&#39;</span>, <span class="stringliteral">&#39;/[;\\\\\\.&amp;,:$&gt;&lt;]/i&#39;</span>);</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keywordflow">if</span>(preg_match(<a class="code" href="../../d6/d75/init_8php.html#a68e7e8cd14c6ec9ff950456aeddc5dec">CONST_DATA_FOLDER_REGEX</a>, <a class="code" href="../../d6/d75/init_8php.html#af034bd981d8cf0b3fd21b1a5e35c9ad1">$site_data_folder</a>) &gt; 0) {</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        die(<span class="stringliteral">&#39;Invalid characters ;\.&amp;,:$&gt;&lt; in site data folder...&#39;</span>);</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;}</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#af5c5e044b06613a80933dd71c886fe77">   30</a></span>&#160;<a class="code" href="../../d6/d75/init_8php.html#af5c5e044b06613a80933dd71c886fe77">$site_data_path</a> = <a class="code" href="../../de/dc4/settings_8dist_8php.html#af21c418e4c577deb3a9ea7299156ae35">$tolc_conf</a>[<span class="stringliteral">&#39;project_dir&#39;</span>] . <span class="stringliteral">&#39;/data/&#39;</span> . <a class="code" href="../../d6/d75/init_8php.html#af034bd981d8cf0b3fd21b1a5e35c9ad1">$site_data_folder</a>;</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#ac22de6cb65fc3db305ebb20d9b9c12fc">   31</a></span>&#160;<a class="code" href="../../d6/d75/init_8php.html#ac22de6cb65fc3db305ebb20d9b9c12fc">$site_tpl_path</a> = <a class="code" href="../../d6/d75/init_8php.html#af5c5e044b06613a80933dd71c886fe77">$site_data_path</a> . <span class="stringliteral">&#39;/tpl&#39;</span>;</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#aaa48e3b3cec35eaaff485c7e5ec82761">   32</a></span>&#160;<a class="code" href="../../d6/d75/init_8php.html#aaa48e3b3cec35eaaff485c7e5ec82761">$site_files_path</a> = <a class="code" href="../../d6/d75/init_8php.html#af5c5e044b06613a80933dd71c886fe77">$site_data_path</a> . <span class="stringliteral">&#39;/files&#39;</span>;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keywordflow">if</span>(!file_exists(<a class="code" href="../../d6/d75/init_8php.html#af5c5e044b06613a80933dd71c886fe77">$site_data_path</a>)) {</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        mkdir(<a class="code" href="../../d6/d75/init_8php.html#af5c5e044b06613a80933dd71c886fe77">$site_data_path</a>, 0775);</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;}</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keywordflow">if</span>(!file_exists(<a class="code" href="../../d6/d75/init_8php.html#ac22de6cb65fc3db305ebb20d9b9c12fc">$site_tpl_path</a>)) {</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        mkdir(<a class="code" href="../../d6/d75/init_8php.html#ac22de6cb65fc3db305ebb20d9b9c12fc">$site_tpl_path</a>, 0775);</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;}</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="keywordflow">if</span>(!file_exists(<a class="code" href="../../d6/d75/init_8php.html#aaa48e3b3cec35eaaff485c7e5ec82761">$site_files_path</a>)) {</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        mkdir(<a class="code" href="../../d6/d75/init_8php.html#aaa48e3b3cec35eaaff485c7e5ec82761">$site_files_path</a>, 0775);</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;}</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a4aa69eb808da4203337cc14a6d1bfff3">   46</a></span>&#160;<a class="code" href="../../d6/d75/init_8php.html#a4aa69eb808da4203337cc14a6d1bfff3">$a_sys_reserved_usernames</a> = array(<span class="stringliteral">&#39;root&#39;</span>, <span class="stringliteral">&#39;demo&#39;</span>);</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a711797613cb863ca0756df789c396bf2">   51</a></span>&#160;<a class="code" href="../../d6/d75/init_8php.html#a711797613cb863ca0756df789c396bf2">$host</a> = $_SERVER[<span class="stringliteral">&#39;SERVER_NAME&#39;</span>];</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#aa0787efab4b22e8a212882f3409d4c77">   52</a></span>&#160;<a class="code" href="../../d6/d75/init_8php.html#aa0787efab4b22e8a212882f3409d4c77">$port</a> = $_SERVER[<span class="stringliteral">&#39;SERVER_PORT&#39;</span>] == <span class="stringliteral">&#39;80&#39;</span> ? <span class="stringliteral">&#39;&#39;</span> : <span class="charliteral">&#39;:&#39;</span> . $_SERVER[<span class="stringliteral">&#39;SERVER_PORT&#39;</span>];</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#ab4f277f0321db83998c7546abc8226d7">   53</a></span>&#160;<a class="code" href="../../d6/d75/init_8php.html#ab4f277f0321db83998c7546abc8226d7">$http_prot</a> = empty($_SERVER[<span class="stringliteral">&#39;HTTPS&#39;</span>]) ? <span class="stringliteral">&#39;http&#39;</span> : <span class="stringliteral">&#39;https&#39;</span>;</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#aa5f2fe99b9b237fa633c0eed0310b487">   54</a></span>&#160;define(<span class="stringliteral">&#39;CONST_PROJECT_HOST&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#ab4f277f0321db83998c7546abc8226d7">$http_prot</a> . <span class="stringliteral">&#39;://&#39;</span> . <a class="code" href="../../d6/d75/init_8php.html#a711797613cb863ca0756df789c396bf2">$host</a> . <a class="code" href="../../d6/d75/init_8php.html#aa0787efab4b22e8a212882f3409d4c77">$port</a>);</div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a3bf2fe8e42a8a8b0edfa6a8d35d25847">   55</a></span>&#160;define(<span class="stringliteral">&#39;CONST_PROJECT_FULL_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#aa5f2fe99b9b237fa633c0eed0310b487">CONST_PROJECT_HOST</a> . <a class="code" href="../../de/dc4/settings_8dist_8php.html#af21c418e4c577deb3a9ea7299156ae35">$tolc_conf</a>[<span class="stringliteral">&#39;project_url&#39;</span>]);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a1d8ce8f5b582637e9267e4e8bb6f705d">   60</a></span>&#160;define(<span class="stringliteral">&#39;CONST_HELP_TAG&#39;</span>, <span class="stringliteral">&#39;&lt;img src=&quot;&#39;</span> . <a class="code" href="../../de/dc4/settings_8dist_8php.html#af21c418e4c577deb3a9ea7299156ae35">$tolc_conf</a>[<span class="stringliteral">&#39;project_url&#39;</span>] . <span class="stringliteral">&#39;/app/images/help.png&quot;&gt;&#39;</span>);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="comment">/* initialize $_SESSION[&#39;locale&#39;] */</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#af5deb172ccf3910c031a23a46ed7e879">   66</a></span>&#160;define(<span class="stringliteral">&#39;CONST_UTF8&#39;</span>, <span class="stringliteral">&#39;UTF-8&#39;</span>);</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a5d67e2d1ed60ec3668c5ec092d0652e3">   67</a></span>&#160;define(<span class="stringliteral">&#39;CONST_UTF8_NO_DASH&#39;</span>, <span class="stringliteral">&#39;UTF8&#39;</span>);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="keywordflow">if</span>(!isset(<a class="code" href="../../d0/d3d/ajax__new__page_8php.html#a395f20d5378de643ef8d64e86d6bba9a">$_SESSION</a>[<span class="stringliteral">&#39;locale&#39;</span>])) {</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <a class="code" href="../../d0/d3d/ajax__new__page_8php.html#a395f20d5378de643ef8d64e86d6bba9a">$_SESSION</a>[<span class="stringliteral">&#39;locale&#39;</span>] = <a class="code" href="../../de/dc4/settings_8dist_8php.html#af21c418e4c577deb3a9ea7299156ae35">$tolc_conf</a>[<span class="stringliteral">&#39;pref_default_locale_code&#39;</span>] . <span class="charliteral">&#39;.&#39;</span> . <a class="code" href="../../d6/d75/init_8php.html#af5deb172ccf3910c031a23a46ed7e879">CONST_UTF8</a>;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;}</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="keywordflow">if</span>(function_exists(<span class="stringliteral">&#39;gettext&#39;</span>)) {</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        $locale = <a class="code" href="../../d0/d3d/ajax__new__page_8php.html#a395f20d5378de643ef8d64e86d6bba9a">$_SESSION</a>[<span class="stringliteral">&#39;locale&#39;</span>];</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        putenv(<span class="stringliteral">&quot;LC_ALL=$locale&quot;</span>);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        setlocale(LC_ALL, $locale);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        bindtextdomain(<span class="stringliteral">&quot;tolc&quot;</span>, <a class="code" href="../../de/dc4/settings_8dist_8php.html#af21c418e4c577deb3a9ea7299156ae35">$tolc_conf</a>[<span class="stringliteral">&#39;project_dir&#39;</span>] . <span class="stringliteral">&quot;/app/i18n&quot;</span>);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        textdomain(<span class="stringliteral">&quot;tolc&quot;</span>);</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#adad189ee768ccea5e995b69a86e77376">   78</a></span>&#160;} <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        require_once <a class="code" href="../../de/dc4/settings_8dist_8php.html#af21c418e4c577deb3a9ea7299156ae35">$tolc_conf</a>[<span class="stringliteral">&#39;project_dir&#39;</span>] . <span class="stringliteral">&#39;/app/common/gettext_missing.php&#39;</span>;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;}</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="comment">/* set server default timezone (it is possible to set from php.ini) */</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#af848a01fa4e501e85d808d97709b2d46">   89</a></span>&#160;define(<span class="stringliteral">&#39;CONST_SERVER_TIMEZONE&#39;</span>, <span class="stringliteral">&#39;UTC&#39;</span>);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;date_default_timezone_set(<a class="code" href="../../d6/d75/init_8php.html#af848a01fa4e501e85d808d97709b2d46">CONST_SERVER_TIMEZONE</a>);</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="comment">/* set server dateformat */</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a33e5075d3459f85a4eb4572cb019745f">   93</a></span>&#160;define(<span class="stringliteral">&#39;CONST_SERVER_DATEFORMAT&#39;</span>, <span class="stringliteral">&#39;YmdHis&#39;</span>);</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment">/* available date formats */</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#af6b19cfded939d0cd8c2cc1baeedf420">   96</a></span>&#160;define(<span class="stringliteral">&#39;CONST_DF_EU_FULLYEAR_LZ_SLASH_24H_LZ&#39;</span>, <span class="stringliteral">&#39;EU_FULLYEAR_LZ_SLASH_24H_LZ&#39;</span>); <span class="comment">// EU format (day/month/year) with full year, slash as delimiter with leading zeros. 24h clock with leading zeros.</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#ac87d2527f274ec53cabb8a1379492553">   97</a></span>&#160;define(<span class="stringliteral">&#39;CONST_DF_EU_SHORTYEAR_LZ_SLASH_24H_LZ&#39;</span>, <span class="stringliteral">&#39;EU_SHORTYEAR_LZ_SLASH_24H_LZ&#39;</span>); <span class="comment">// EU format (day/month/year) with short year, slash as delimiter with leading zeros. 24h clock with leading zeros.</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#abd8064a2501796a8a041a94e01f8c465">   98</a></span>&#160;define(<span class="stringliteral">&#39;CONST_DF_US_FULLYEAR_LZ_SLASH_24H_LZ&#39;</span>, <span class="stringliteral">&#39;US_FULLYEAR_LZ_SLASH_24H_LZ&#39;</span>); <span class="comment">// US format (month/day/year) with full year, slash as delimiter with leading zeros. 24h clock with leading zeros.</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a4c633dee8e343d17a29baf6818199b35">   99</a></span>&#160;define(<span class="stringliteral">&#39;CONST_DF_US_SHORTYEAR_LZ_SLASH_24H_LZ&#39;</span>, <span class="stringliteral">&#39;US_SHORTYEAR_LZ_SLASH_24H_LZ&#39;</span>); <span class="comment">// US format (month/day/year) with short year, slash as delimiter with leading zeros. 24h clock with leading zeros.</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a512e7a6b0fea282c33fda915f9a193a3">  100</a></span>&#160;define(<span class="stringliteral">&#39;CONST_DF_EU_FULLYEAR_LZ_DASH_24H_LZ&#39;</span>, <span class="stringliteral">&#39;EU_FULLYEAR_LZ_DASH_24H_LZ&#39;</span>); <span class="comment">// EU format (day/month/year) with full year, dash as delimiter with leading zeros. 24h clock with leading zeros.</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#afeb6150385fc753a1d3256720bae88d9">  101</a></span>&#160;define(<span class="stringliteral">&#39;CONST_DF_EU_SHORTYEAR_LZ_DASH_24H_LZ&#39;</span>, <span class="stringliteral">&#39;EU_SHORTYEAR_LZ_DASH_24H_LZ&#39;</span>); <span class="comment">// EU format (day/month/year) with short year, dash as delimiter with leading zeros. 24h clock with leading zeros.</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a1884f030294f4c050659c9f9b124c583">  102</a></span>&#160;define(<span class="stringliteral">&#39;CONST_DF_US_FULLYEAR_LZ_DASH_24H_LZ&#39;</span>, <span class="stringliteral">&#39;US_FULLYEAR_LZ_DASH_24H_LZ&#39;</span>); <span class="comment">// US format (month/day/year) with full year, dash as delimiter with leading zeros. 24h clock with leading zeros.</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#ace9132840dd6a970526fc3eb05baf86f">  103</a></span>&#160;define(<span class="stringliteral">&#39;CONST_DF_US_SHORTYEAR_LZ_DASH_24H_LZ&#39;</span>, <span class="stringliteral">&#39;US_SHORTYEAR_LZ_DASH_24H_LZ&#39;</span>); <span class="comment">// US format (month/day/year) with short year, dash as delimiter with leading zeros. 24h clock with leading zeros.</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a5fdabd46dd0a8f5395fbca2f2de9302d">  105</a></span>&#160;<a class="code" href="../../d6/d75/init_8php.html#a5fdabd46dd0a8f5395fbca2f2de9302d">$a_date_format</a> = array(</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        <a class="code" href="../../d6/d75/init_8php.html#af6b19cfded939d0cd8c2cc1baeedf420">CONST_DF_EU_FULLYEAR_LZ_SLASH_24H_LZ</a> =&gt; array(<span class="stringliteral">&#39;php_datetime&#39;</span> =&gt; <span class="stringliteral">&#39;d/m/Y H:i:s&#39;</span>, <span class="stringliteral">&#39;php_datetime_short&#39;</span> =&gt; <span class="stringliteral">&#39;d/m/Y H:i&#39;</span>, <span class="stringliteral">&#39;php_date&#39;</span> =&gt; <span class="stringliteral">&#39;d/m/Y&#39;</span>, <span class="stringliteral">&#39;jq_date&#39;</span> =&gt; <span class="stringliteral">&#39;dd/mm/yy&#39;</span>, <span class="stringliteral">&#39;jq_time&#39;</span> =&gt; <span class="stringliteral">&#39;hh:mm:ss&#39;</span>, <span class="stringliteral">&#39;jq_time_short&#39;</span> =&gt; <span class="stringliteral">&#39;hh:mm&#39;</span>),</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        <a class="code" href="../../d6/d75/init_8php.html#ac87d2527f274ec53cabb8a1379492553">CONST_DF_EU_SHORTYEAR_LZ_SLASH_24H_LZ</a> =&gt; array(<span class="stringliteral">&#39;php_datetime&#39;</span> =&gt; <span class="stringliteral">&#39;d/m/y H:i:s&#39;</span>, <span class="stringliteral">&#39;php_datetime_short&#39;</span> =&gt; <span class="stringliteral">&#39;d/m/y H:i&#39;</span>, <span class="stringliteral">&#39;php_date&#39;</span> =&gt; <span class="stringliteral">&#39;d/m/y&#39;</span>, <span class="stringliteral">&#39;jq_date&#39;</span> =&gt; <span class="stringliteral">&#39;dd/mm/y&#39;</span>, <span class="stringliteral">&#39;jq_time&#39;</span> =&gt; <span class="stringliteral">&#39;hh:mm:ss&#39;</span>, <span class="stringliteral">&#39;jq_time_short&#39;</span> =&gt; <span class="stringliteral">&#39;hh:mm&#39;</span>),</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        <a class="code" href="../../d6/d75/init_8php.html#abd8064a2501796a8a041a94e01f8c465">CONST_DF_US_FULLYEAR_LZ_SLASH_24H_LZ</a> =&gt; array(<span class="stringliteral">&#39;php_datetime&#39;</span> =&gt; <span class="stringliteral">&#39;m/d/Y H:i:s&#39;</span>, <span class="stringliteral">&#39;php_datetime_short&#39;</span> =&gt; <span class="stringliteral">&#39;m/d/Y H:i&#39;</span>, <span class="stringliteral">&#39;php_date&#39;</span> =&gt; <span class="stringliteral">&#39;m/d/Y&#39;</span>, <span class="stringliteral">&#39;jq_date&#39;</span> =&gt; <span class="stringliteral">&#39;mm/dd/yy&#39;</span>, <span class="stringliteral">&#39;jq_time&#39;</span> =&gt; <span class="stringliteral">&#39;hh:mm:ss&#39;</span>, <span class="stringliteral">&#39;jq_time_short&#39;</span> =&gt; <span class="stringliteral">&#39;hh:mm&#39;</span>),</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        <a class="code" href="../../d6/d75/init_8php.html#a4c633dee8e343d17a29baf6818199b35">CONST_DF_US_SHORTYEAR_LZ_SLASH_24H_LZ</a> =&gt; array(<span class="stringliteral">&#39;php_datetime&#39;</span> =&gt; <span class="stringliteral">&#39;m/d/y H:i:s&#39;</span>, <span class="stringliteral">&#39;php_datetime_short&#39;</span> =&gt; <span class="stringliteral">&#39;m/d/y H:i&#39;</span>, <span class="stringliteral">&#39;php_date&#39;</span> =&gt; <span class="stringliteral">&#39;m/d/y&#39;</span>, <span class="stringliteral">&#39;jq_date&#39;</span> =&gt; <span class="stringliteral">&#39;mm/dd/y&#39;</span>, <span class="stringliteral">&#39;jq_time&#39;</span> =&gt; <span class="stringliteral">&#39;hh:mm:ss&#39;</span>, <span class="stringliteral">&#39;jq_time_short&#39;</span> =&gt; <span class="stringliteral">&#39;hh:mm&#39;</span>),</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        <a class="code" href="../../d6/d75/init_8php.html#a512e7a6b0fea282c33fda915f9a193a3">CONST_DF_EU_FULLYEAR_LZ_DASH_24H_LZ</a> =&gt; array(<span class="stringliteral">&#39;php_datetime&#39;</span> =&gt; <span class="stringliteral">&#39;d-m-Y H:i:s&#39;</span>, <span class="stringliteral">&#39;php_datetime_short&#39;</span> =&gt; <span class="stringliteral">&#39;d-m-Y H:i&#39;</span>, <span class="stringliteral">&#39;php_date&#39;</span> =&gt; <span class="stringliteral">&#39;d-m-Y&#39;</span>, <span class="stringliteral">&#39;jq_date&#39;</span> =&gt; <span class="stringliteral">&#39;dd-mm-yy&#39;</span>, <span class="stringliteral">&#39;jq_time&#39;</span> =&gt; <span class="stringliteral">&#39;hh:mm:ss&#39;</span>, <span class="stringliteral">&#39;jq_time_short&#39;</span> =&gt; <span class="stringliteral">&#39;hh:mm&#39;</span>),</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        <a class="code" href="../../d6/d75/init_8php.html#afeb6150385fc753a1d3256720bae88d9">CONST_DF_EU_SHORTYEAR_LZ_DASH_24H_LZ</a> =&gt; array(<span class="stringliteral">&#39;php_datetime&#39;</span> =&gt; <span class="stringliteral">&#39;d-m-y H:i:s&#39;</span>, <span class="stringliteral">&#39;php_datetime_short&#39;</span> =&gt; <span class="stringliteral">&#39;d-m-y H:i&#39;</span>, <span class="stringliteral">&#39;php_date&#39;</span> =&gt; <span class="stringliteral">&#39;d-m-y&#39;</span>, <span class="stringliteral">&#39;jq_date&#39;</span> =&gt; <span class="stringliteral">&#39;dd-mm-y&#39;</span>, <span class="stringliteral">&#39;jq_time&#39;</span> =&gt; <span class="stringliteral">&#39;hh:mm:ss&#39;</span>, <span class="stringliteral">&#39;jq_time_short&#39;</span> =&gt; <span class="stringliteral">&#39;hh:mm&#39;</span>),</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        <a class="code" href="../../d6/d75/init_8php.html#a1884f030294f4c050659c9f9b124c583">CONST_DF_US_FULLYEAR_LZ_DASH_24H_LZ</a> =&gt; array(<span class="stringliteral">&#39;php_datetime&#39;</span> =&gt; <span class="stringliteral">&#39;m-d-Y H:i:s&#39;</span>, <span class="stringliteral">&#39;php_datetime_short&#39;</span> =&gt; <span class="stringliteral">&#39;m-d-Y H:i&#39;</span>, <span class="stringliteral">&#39;php_date&#39;</span> =&gt; <span class="stringliteral">&#39;m-d-Y&#39;</span>, <span class="stringliteral">&#39;jq_date&#39;</span> =&gt; <span class="stringliteral">&#39;mm-dd-yy&#39;</span>, <span class="stringliteral">&#39;jq_time&#39;</span> =&gt; <span class="stringliteral">&#39;hh:mm:ss&#39;</span>, <span class="stringliteral">&#39;jq_time_short&#39;</span> =&gt; <span class="stringliteral">&#39;hh:mm&#39;</span>),</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        <a class="code" href="../../d6/d75/init_8php.html#ace9132840dd6a970526fc3eb05baf86f">CONST_DF_US_SHORTYEAR_LZ_DASH_24H_LZ</a> =&gt; array(<span class="stringliteral">&#39;php_datetime&#39;</span> =&gt; <span class="stringliteral">&#39;m-d-y H:i:s&#39;</span>, <span class="stringliteral">&#39;php_datetime_short&#39;</span> =&gt; <span class="stringliteral">&#39;m-d-y H:i&#39;</span>, <span class="stringliteral">&#39;php_date&#39;</span> =&gt; <span class="stringliteral">&#39;m-d-y&#39;</span>, <span class="stringliteral">&#39;jq_date&#39;</span> =&gt; <span class="stringliteral">&#39;mm-dd-y&#39;</span>, <span class="stringliteral">&#39;jq_time&#39;</span> =&gt; <span class="stringliteral">&#39;hh:mm:ss&#39;</span>, <span class="stringliteral">&#39;jq_time_short&#39;</span> =&gt; <span class="stringliteral">&#39;hh:mm&#39;</span>)</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;);</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a35f182c412b1dcc567444edf5954583f">  116</a></span>&#160;define(<span class="stringliteral">&#39;CONST_SAFE_DATEFORMAT_STRTOTIME&#39;</span>, <span class="stringliteral">&#39;Y-m-d H:i:s&#39;</span>);</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="comment">/* initialize $_SESSION[&#39;user_timezone&#39;] (default visitor timezone) */</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="keywordflow">if</span>(!isset(<a class="code" href="../../d0/d3d/ajax__new__page_8php.html#a395f20d5378de643ef8d64e86d6bba9a">$_SESSION</a>[<span class="stringliteral">&#39;user_timezone&#39;</span>])) {</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        <a class="code" href="../../d0/d3d/ajax__new__page_8php.html#a395f20d5378de643ef8d64e86d6bba9a">$_SESSION</a>[<span class="stringliteral">&#39;user_timezone&#39;</span>] = <a class="code" href="../../de/dc4/settings_8dist_8php.html#af21c418e4c577deb3a9ea7299156ae35">$tolc_conf</a>[<span class="stringliteral">&#39;pref_timezone&#39;</span>];</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;}</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="comment">/* initialize $_SESSION[&#39;user_dateformat&#39;] (default visitor dateformat) */</span></div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="keywordflow">if</span>(!isset(<a class="code" href="../../d0/d3d/ajax__new__page_8php.html#a395f20d5378de643ef8d64e86d6bba9a">$_SESSION</a>[<span class="stringliteral">&#39;user_dateformat&#39;</span>])) {</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        <a class="code" href="../../d0/d3d/ajax__new__page_8php.html#a395f20d5378de643ef8d64e86d6bba9a">$_SESSION</a>[<span class="stringliteral">&#39;user_dateformat&#39;</span>] = <a class="code" href="../../d6/d75/init_8php.html#af6b19cfded939d0cd8c2cc1baeedf420">CONST_DF_EU_FULLYEAR_LZ_SLASH_24H_LZ</a>;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;}</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a5d024bbf2297904e85d48dcc42da4b22">  132</a></span>&#160;define(<span class="stringliteral">&#39;CONST_BASE_URL&#39;</span>, <a class="code" href="../../de/dc4/settings_8dist_8php.html#af21c418e4c577deb3a9ea7299156ae35">$tolc_conf</a>[<span class="stringliteral">&#39;project_url&#39;</span>] . <span class="charliteral">&#39;/&#39;</span>); <span class="comment">// used by tinymce</span></div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a406bf568830b8f8ea4292d92d42d00fb">  133</a></span>&#160;define(<span class="stringliteral">&#39;UPLOADS_URL&#39;</span>, <a class="code" href="../../de/dc4/settings_8dist_8php.html#af21c418e4c577deb3a9ea7299156ae35">$tolc_conf</a>[<span class="stringliteral">&#39;project_url&#39;</span>] . <span class="stringliteral">&#39;/data/&#39;</span> . <a class="code" href="../../d6/d75/init_8php.html#af034bd981d8cf0b3fd21b1a5e35c9ad1">$site_data_folder</a> . <span class="charliteral">&#39;/&#39;</span>); <span class="comment">// used from ezfilemanager</span></div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a4ac696a4afac23226b2ec54851c0915a">  143</a></span>&#160;define(<span class="stringliteral">&#39;CONST_REGEX_SANITIZE_URL&#39;</span>, <span class="stringliteral">&#39;/[^\040\w\/\.\-\:]/u&#39;</span>);</div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a0692efa1015e864be063286f7c9cc6d4">  144</a></span>&#160;define(<span class="stringliteral">&#39;CONST_REGEX_SANITIZE_URL_LEGACY&#39;</span>, <span class="stringliteral">&#39;/[&#39;</span> . preg_quote(<span class="stringliteral">&#39;!&quot;#$%&amp;&#39;</span> . <span class="stringliteral">&quot;&#39;&quot;</span> . <span class="stringliteral">&#39;()*+,;&lt;=&gt;?@[\]^`{|}~&#39;</span>) . <span class="stringliteral">&#39;]/&#39;</span>);</div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#ac913e6c3da3790f32597e15e7471411b">  145</a></span>&#160;define(<span class="stringliteral">&#39;CONST_URL_DB_MAXLENGTH&#39;</span>, 254);</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a81e77acabb46663453c3b6d17082bf6b">  150</a></span>&#160;define(<span class="stringliteral">&#39;CONST_ACCESS_DENIED&#39;</span>, <a class="code" href="../../d5/dd6/gettext__missing_8php.html#a3c20d7b28b08b0ee319c8dffdc979b75">gettext</a>(<span class="stringliteral">&#39;Access denied&#39;</span>));</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="comment">/* user status */</span></div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#acab4a4a58a98753371ed9a245b235bcf">  156</a></span>&#160;define(<span class="stringliteral">&#39;CONST_USER_STATUS_PENDING_KEY&#39;</span>, 1);</div>
<div class="line"><a name="l00157"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a2061d6b7f159553155eb1c81f046ff3b">  157</a></span>&#160;define(<span class="stringliteral">&#39;CONST_USER_STATUS_ACTIVE_KEY&#39;</span>, 2);</div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#ab4ee8f1a973473d9ed81390d930c12aa">  158</a></span>&#160;define(<span class="stringliteral">&#39;CONST_USER_STATUS_INACTIVE_KEY&#39;</span>, 3);</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;</div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a4768a972e04c1ad7abb86585cb843fdc">  160</a></span>&#160;define(<span class="stringliteral">&#39;CONST_USER_STATUS_PENDING_VALUE&#39;</span>, <a class="code" href="../../d5/dd6/gettext__missing_8php.html#a3c20d7b28b08b0ee319c8dffdc979b75">gettext</a>(<span class="stringliteral">&#39;pending registration&#39;</span>));</div>
<div class="line"><a name="l00161"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a347c0f6c6b8ccaa81d3d53002a281367">  161</a></span>&#160;define(<span class="stringliteral">&#39;CONST_USER_STATUS_ACTIVE_VALUE&#39;</span>, <a class="code" href="../../d5/dd6/gettext__missing_8php.html#a3c20d7b28b08b0ee319c8dffdc979b75">gettext</a>(<span class="stringliteral">&#39;active user&#39;</span>));</div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a15233e8ac9d84a7d4e68302a1e19c8ec">  162</a></span>&#160;define(<span class="stringliteral">&#39;CONST_USER_STATUS_INACTIVE_VALUE&#39;</span>, <a class="code" href="../../d5/dd6/gettext__missing_8php.html#a3c20d7b28b08b0ee319c8dffdc979b75">gettext</a>(<span class="stringliteral">&#39;inactive user&#39;</span>));</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a3660a7b1470413b98f20641eb867b9bf">  164</a></span>&#160;<a class="code" href="../../d6/d75/init_8php.html#a3660a7b1470413b98f20641eb867b9bf">$a_user_status_keys</a> = array(<a class="code" href="../../d6/d75/init_8php.html#acab4a4a58a98753371ed9a245b235bcf">CONST_USER_STATUS_PENDING_KEY</a>,</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        <a class="code" href="../../d6/d75/init_8php.html#a2061d6b7f159553155eb1c81f046ff3b">CONST_USER_STATUS_ACTIVE_KEY</a>,</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        <a class="code" href="../../d6/d75/init_8php.html#ab4ee8f1a973473d9ed81390d930c12aa">CONST_USER_STATUS_INACTIVE_KEY</a></div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;);</div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a6c53fb7157ce1a4b0d8e24dd8822748f">  168</a></span>&#160;<a class="code" href="../../d6/d75/init_8php.html#a6c53fb7157ce1a4b0d8e24dd8822748f">$a_user_status_values</a> = array(<a class="code" href="../../d6/d75/init_8php.html#a4768a972e04c1ad7abb86585cb843fdc">CONST_USER_STATUS_PENDING_VALUE</a>,</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        <a class="code" href="../../d6/d75/init_8php.html#a347c0f6c6b8ccaa81d3d53002a281367">CONST_USER_STATUS_ACTIVE_VALUE</a>,</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        <a class="code" href="../../d6/d75/init_8php.html#a15233e8ac9d84a7d4e68302a1e19c8ec">CONST_USER_STATUS_INACTIVE_VALUE</a></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;);</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<span class="comment">/* user roles */</span></div>
<div class="line"><a name="l00174"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#aa4e322cdc903d58b893023a3efd02221">  174</a></span>&#160;define(<span class="stringliteral">&#39;CONST_ROLE_ADMIN_KEY&#39;</span>, 1);</div>
<div class="line"><a name="l00175"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#ae1bc41000add43c2c82229e4ef2649de">  175</a></span>&#160;define(<span class="stringliteral">&#39;CONST_ROLE_EDITOR_KEY&#39;</span>, 2);</div>
<div class="line"><a name="l00176"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a509989100eeeba947f7f6b69a1ce8dcf">  176</a></span>&#160;define(<span class="stringliteral">&#39;CONST_ROLE_AUTHOR_KEY&#39;</span>, 3);</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div>
<div class="line"><a name="l00178"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a8e1b6a468f65242c3aca3ee57e9a28b9">  178</a></span>&#160;define(<span class="stringliteral">&#39;CONST_ROLE_ADMIN_VALUE&#39;</span>, <a class="code" href="../../d5/dd6/gettext__missing_8php.html#a3c20d7b28b08b0ee319c8dffdc979b75">gettext</a>(<span class="stringliteral">&#39;admin&#39;</span>));</div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a5269c78ff0bfdfdb9fa0b976463eb1ee">  179</a></span>&#160;define(<span class="stringliteral">&#39;CONST_ROLE_EDITOR_VALUE&#39;</span>, <a class="code" href="../../d5/dd6/gettext__missing_8php.html#a3c20d7b28b08b0ee319c8dffdc979b75">gettext</a>(<span class="stringliteral">&#39;editor&#39;</span>));</div>
<div class="line"><a name="l00180"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a4a3dbe3e9132670e6e9bc78ac5644798">  180</a></span>&#160;define(<span class="stringliteral">&#39;CONST_ROLE_AUTHOR_VALUE&#39;</span>, <a class="code" href="../../d5/dd6/gettext__missing_8php.html#a3c20d7b28b08b0ee319c8dffdc979b75">gettext</a>(<span class="stringliteral">&#39;author&#39;</span>));</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;</div>
<div class="line"><a name="l00182"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#aafafae309f5030489393440cefad9a97">  182</a></span>&#160;<a class="code" href="../../d6/d75/init_8php.html#aafafae309f5030489393440cefad9a97">$a_role_keys</a> = array(<a class="code" href="../../d6/d75/init_8php.html#aa4e322cdc903d58b893023a3efd02221">CONST_ROLE_ADMIN_KEY</a>,</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        <a class="code" href="../../d6/d75/init_8php.html#ae1bc41000add43c2c82229e4ef2649de">CONST_ROLE_EDITOR_KEY</a>,</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        <a class="code" href="../../d6/d75/init_8php.html#a509989100eeeba947f7f6b69a1ce8dcf">CONST_ROLE_AUTHOR_KEY</a></div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;);</div>
<div class="line"><a name="l00186"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a6455f0a942af76a1fb5dc0d34e6c682b">  186</a></span>&#160;<a class="code" href="../../d6/d75/init_8php.html#a6455f0a942af76a1fb5dc0d34e6c682b">$a_role_values</a> = array(<a class="code" href="../../d6/d75/init_8php.html#a8e1b6a468f65242c3aca3ee57e9a28b9">CONST_ROLE_ADMIN_VALUE</a>,</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;        <a class="code" href="../../d6/d75/init_8php.html#a5269c78ff0bfdfdb9fa0b976463eb1ee">CONST_ROLE_EDITOR_VALUE</a>,</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;        <a class="code" href="../../d6/d75/init_8php.html#a4a3dbe3e9132670e6e9bc78ac5644798">CONST_ROLE_AUTHOR_VALUE</a></div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;);</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="comment">/* content status */</span></div>
<div class="line"><a name="l00192"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a93e5d98e1cb4a87c32a3b60666ec29d9">  192</a></span>&#160;define(<span class="stringliteral">&#39;CONST_CONTENT_STATUS_DRAFT_KEY&#39;</span>, 1);</div>
<div class="line"><a name="l00193"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a7f8ee6799f4d346516d60716aefa01fc">  193</a></span>&#160;define(<span class="stringliteral">&#39;CONST_CONTENT_STATUS_PENDING_REVIEW_KEY&#39;</span>, 2);</div>
<div class="line"><a name="l00194"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a3178998c1b4b9effba542d3cbeb3468c">  194</a></span>&#160;define(<span class="stringliteral">&#39;CONST_CONTENT_STATUS_UNDER_REVIEW_KEY&#39;</span>, 3);</div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a343771fe85c1e04422dfad48c26900b4">  195</a></span>&#160;define(<span class="stringliteral">&#39;CONST_CONTENT_STATUS_APPROVED_KEY&#39;</span>, 4);</div>
<div class="line"><a name="l00196"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a5afee9294ada0317a39b5f58472c2115">  196</a></span>&#160;define(<span class="stringliteral">&#39;CONST_CONTENT_STATUS_REJECTED_KEY&#39;</span>, 5);</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;</div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#aeb76e285c6b9e4bfcc3f8c05acfa808b">  198</a></span>&#160;define(<span class="stringliteral">&#39;CONST_CONTENT_STATUS_DRAFT_VALUE&#39;</span>, <a class="code" href="../../d5/dd6/gettext__missing_8php.html#a3c20d7b28b08b0ee319c8dffdc979b75">gettext</a>(<span class="stringliteral">&#39;draft&#39;</span>));</div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a79993d164d0567a3ae299dc14cb4c3e8">  199</a></span>&#160;define(<span class="stringliteral">&#39;CONST_CONTENT_STATUS_PENDING_REVIEW_VALUE&#39;</span>, <a class="code" href="../../d5/dd6/gettext__missing_8php.html#a3c20d7b28b08b0ee319c8dffdc979b75">gettext</a>(<span class="stringliteral">&#39;pending review&#39;</span>));</div>
<div class="line"><a name="l00200"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#ae50ba4a026aeaf0c38096e1dc640813e">  200</a></span>&#160;define(<span class="stringliteral">&#39;CONST_CONTENT_STATUS_UNDER_REVIEW_VALUE&#39;</span>, <a class="code" href="../../d5/dd6/gettext__missing_8php.html#a3c20d7b28b08b0ee319c8dffdc979b75">gettext</a>(<span class="stringliteral">&#39;under review&#39;</span>));</div>
<div class="line"><a name="l00201"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a51f41c08e46f02df6d59cfd6c4ea4249">  201</a></span>&#160;define(<span class="stringliteral">&#39;CONST_CONTENT_STATUS_APPROVED_VALUE&#39;</span>, <a class="code" href="../../d5/dd6/gettext__missing_8php.html#a3c20d7b28b08b0ee319c8dffdc979b75">gettext</a>(<span class="stringliteral">&#39;approved&#39;</span>));</div>
<div class="line"><a name="l00202"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a003e3e7e121b962a56f046a9513bf8f8">  202</a></span>&#160;define(<span class="stringliteral">&#39;CONST_CONTENT_STATUS_REJECTED_VALUE&#39;</span>, <a class="code" href="../../d5/dd6/gettext__missing_8php.html#a3c20d7b28b08b0ee319c8dffdc979b75">gettext</a>(<span class="stringliteral">&#39;rejected&#39;</span>));</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;</div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">  207</a></span>&#160;define(<span class="stringliteral">&#39;LIB_URL&#39;</span>, <a class="code" href="../../de/dc4/settings_8dist_8php.html#af21c418e4c577deb3a9ea7299156ae35">$tolc_conf</a>[<span class="stringliteral">&#39;project_url&#39;</span>] . <span class="stringliteral">&#39;/lib&#39;</span>);</div>
<div class="line"><a name="l00208"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#aab9895f0433c9fc8f6980e22ddecbbd2">  208</a></span>&#160;define(<span class="stringliteral">&#39;LIB_DIR&#39;</span>, <a class="code" href="../../de/dc4/settings_8dist_8php.html#af21c418e4c577deb3a9ea7299156ae35">$tolc_conf</a>[<span class="stringliteral">&#39;project_dir&#39;</span>] . <span class="stringliteral">&#39;/lib&#39;</span>);</div>
<div class="line"><a name="l00209"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">  209</a></span>&#160;define(<span class="stringliteral">&#39;LIB_EXT_DIR&#39;</span>, <span class="stringliteral">&#39;/ext&#39;</span>);</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div>
<div class="line"><a name="l00211"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a9f8ef86130f79998fbbbc666a056099a">  211</a></span>&#160;define(<span class="stringliteral">&#39;JQUERY_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">LIB_URL</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/jquery-1.8.0/jquery-1.8.0.min.js&#39;</span>);</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;</div>
<div class="line"><a name="l00213"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a661500dc54d3260935707368cfc6328a">  213</a></span>&#160;define(<span class="stringliteral">&#39;JQUERY_UI_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">LIB_URL</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/jquery-ui-1.8.23.custom/js/jquery-ui-1.8.23.custom.min.js&#39;</span>);</div>
<div class="line"><a name="l00214"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a00668fb39eb1c2de16640d3496fb6cc4">  214</a></span>&#160;define(<span class="stringliteral">&#39;JQUERY_UI_CSS_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">LIB_URL</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/jquery-ui-1.8.23.custom/css/&#39;</span> . <a class="code" href="../../de/dc4/settings_8dist_8php.html#af21c418e4c577deb3a9ea7299156ae35">$tolc_conf</a>[<span class="stringliteral">&#39;pref_jqueryui_theme&#39;</span>] . <span class="stringliteral">&#39;/jquery-ui-1.8.23.custom.css&#39;</span>);</div>
<div class="line"><a name="l00215"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a711d5605d93e795ef30d42c93c2ed93b">  215</a></span>&#160;define(<span class="stringliteral">&#39;JQUERY_UI_i18n_DIR&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">LIB_URL</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/jquery-ui-localize&#39;</span>);</div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a160f73a430c6f636b78ca4e5ca571092">  216</a></span>&#160;define(<span class="stringliteral">&#39;JQUERY_UI_DATETIMEPICKER_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">LIB_URL</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/jquery-ui-timepicker-addon-1.0.1/jquery-ui-timepicker-addon.js&#39;</span>);</div>
<div class="line"><a name="l00217"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#add641b93661e385343f620981297919c">  217</a></span>&#160;define(<span class="stringliteral">&#39;JQUERY_UI_DATETIMEPICKER_i18n_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">LIB_URL</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/jquery-ui-timepicker-addon-1.0.1/localization/jquery-ui-timepicker-&#39;</span> . substr(<a class="code" href="../../d0/d3d/ajax__new__page_8php.html#a395f20d5378de643ef8d64e86d6bba9a">$_SESSION</a>[<span class="stringliteral">&#39;locale&#39;</span>], 0, 2) . <span class="stringliteral">&#39;.js&#39;</span>);</div>
<div class="line"><a name="l00218"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a5a6eb265fea49bef33f92dd0ea337a63">  218</a></span>&#160;define(<span class="stringliteral">&#39;JQUERY_UI_DATETIMEPICKER_CSS_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">LIB_URL</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/jquery-ui-timepicker-addon-1.0.1/jquery-ui-timepicker-addon.css&#39;</span>);</div>
<div class="line"><a name="l00219"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a8af029b12311aa3cdbd7ff40ee898d47">  219</a></span>&#160;define(<span class="stringliteral">&#39;JQUERY_UI_EXT_AUTOCOMPLETE_HTML_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">LIB_URL</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/jquery-ui-extensions/jquery.ui.autocomplete.html.js&#39;</span>);</div>
<div class="line"><a name="l00220"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a965735df01158cb9aad6180065d95235">  220</a></span>&#160;define(<span class="stringliteral">&#39;JQUERY_UI_LAYOUT_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">LIB_URL</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/jquery-ui-layout.v.1.3.0-rc30.4/jquery.layout.js&#39;</span>);</div>
<div class="line"><a name="l00221"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#ab4ed59dd00d6b5cd6c9d0a373a0a4960">  221</a></span>&#160;define(<span class="stringliteral">&#39;JQUERY_UI_LAYOUT_CSS_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">LIB_URL</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/jquery-ui-layout.v.1.3.0-rc30.4/layout-default.css&#39;</span>);</div>
<div class="line"><a name="l00222"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#af7426a7fe37b25452a89189339caa741">  222</a></span>&#160;define(<span class="stringliteral">&#39;JSTREE_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">LIB_URL</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/jstree.v.pre1.0_fix1/jquery.jstree.js&#39;</span>);</div>
<div class="line"><a name="l00223"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a429edc9a859d36c65034b50cf2c5cfc2">  223</a></span>&#160;define(<span class="stringliteral">&#39;QTIP2_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">LIB_URL</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/Craga89-qTip2-bbb88cf/jquery.qtip.min.js&#39;</span>);</div>
<div class="line"><a name="l00224"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a8e72e3baa5d35a72df674f55f4461377">  224</a></span>&#160;define(<span class="stringliteral">&#39;QTIP2_CSS_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">LIB_URL</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/Craga89-qTip2-bbb88cf/jquery.qtip.css&#39;</span>);</div>
<div class="line"><a name="l00225"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a93504b936d317a10642f06593c54caa3">  225</a></span>&#160;define(<span class="stringliteral">&#39;PASSWORDSTRENGTH_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">LIB_URL</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/passwordstrength/passwordstrength.js&#39;</span>);</div>
<div class="line"><a name="l00226"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#adb06c75e1e2b55b72816a397aae2ed97">  226</a></span>&#160;define(<span class="stringliteral">&#39;PASSWORDSTRENGTH_CSS_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">LIB_URL</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/passwordstrength/passwordstrength.css&#39;</span>);</div>
<div class="line"><a name="l00227"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a9498d2721663fa471fbfa5e14003c8be">  227</a></span>&#160;define(<span class="stringliteral">&#39;JUI_ALERT_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">LIB_URL</a> . <span class="stringliteral">&#39;/jui_alert_1.0/jquery.jui_alert.js&#39;</span>);</div>
<div class="line"><a name="l00228"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#ab6164a1d1e06fa8cc10051f5ebda8745">  228</a></span>&#160;define(<span class="stringliteral">&#39;JQ_EASY_SLIDE_PANEL_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">LIB_URL</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/jqEasySlidePanel_1.0/jquery.slidePanel.js&#39;</span>);</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;</div>
<div class="line"><a name="l00230"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#ad6ce708f008976ef055a97b78d245848">  230</a></span>&#160;define(<span class="stringliteral">&#39;JQUERY_TINYMCE_DIR&#39;</span>, <span class="stringliteral">&#39;/tinymce_3.5.6_jquery&#39;</span>);</div>
<div class="line"><a name="l00231"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a6392082f6ba4bc1f2e56dc541e47ecc4">  231</a></span>&#160;define(<span class="stringliteral">&#39;JQUERY_TINYMCE_PATH&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a0766419d677198c00aa5e6342fe10f95">LIB_URL</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <a class="code" href="../../d6/d75/init_8php.html#ad6ce708f008976ef055a97b78d245848">JQUERY_TINYMCE_DIR</a>);</div>
<div class="line"><a name="l00232"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a733dd6fca000ff85ccf8b7487fb45c2a">  232</a></span>&#160;define(<span class="stringliteral">&#39;JQUERY_TINYMCE_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a6392082f6ba4bc1f2e56dc541e47ecc4">JQUERY_TINYMCE_PATH</a> . <span class="stringliteral">&#39;/jquery.tinymce.js&#39;</span>);</div>
<div class="line"><a name="l00233"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a7df58776621f965940321fc5eee94ceb">  233</a></span>&#160;define(<span class="stringliteral">&#39;TINYMCE_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a6392082f6ba4bc1f2e56dc541e47ecc4">JQUERY_TINYMCE_PATH</a> . <span class="stringliteral">&#39;/tiny_mce.js&#39;</span>);</div>
<div class="line"><a name="l00234"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#ae557b8017d9dd158e7469c2c37d2ec79">  234</a></span>&#160;define(<span class="stringliteral">&#39;TINYMCE_POPUP_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a6392082f6ba4bc1f2e56dc541e47ecc4">JQUERY_TINYMCE_PATH</a> . <span class="stringliteral">&#39;/tiny_mce_popup.js&#39;</span>);</div>
<div class="line"><a name="l00235"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#ace4f173ac878d87a44bb9b5815dc247e">  235</a></span>&#160;define(<span class="stringliteral">&#39;EZFILEMANAGER_URL&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#a6392082f6ba4bc1f2e56dc541e47ecc4">JQUERY_TINYMCE_PATH</a> . <span class="stringliteral">&#39;/plugins/ezfilemanager/index.php&#39;</span>);</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;</div>
<div class="line"><a name="l00237"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#aaf3b22b07d5afe742fad1f7a63a1b5b0">  237</a></span>&#160;define(<span class="stringliteral">&#39;PHPASS&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#aab9895f0433c9fc8f6980e22ddecbbd2">LIB_DIR</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/phpass-0.3/PasswordHash.php&#39;</span>);</div>
<div class="line"><a name="l00238"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a9d247c19a0245a28a9363b9ded3df8e4">  238</a></span>&#160;define(<span class="stringliteral">&#39;ADODB_PATH&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#aab9895f0433c9fc8f6980e22ddecbbd2">LIB_DIR</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/adodb_5.17&#39;</span>);</div>
<div class="line"><a name="l00239"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a3c5913f67696e5b4eef1a14b19653629">  239</a></span>&#160;define(<span class="stringliteral">&#39;SIMPLE_HTML_DOM_PATH&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#aab9895f0433c9fc8f6980e22ddecbbd2">LIB_DIR</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/simplehtmldom_1_5&#39;</span>);</div>
<div class="line"><a name="l00240"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#ad20d4ed3bdaf43b28d0070ada145ea88">  240</a></span>&#160;define(<span class="stringliteral">&#39;HTML_PURIFIER_PATH&#39;</span>, <a class="code" href="../../d6/d75/init_8php.html#aab9895f0433c9fc8f6980e22ddecbbd2">LIB_DIR</a> . <a class="code" href="../../d6/d75/init_8php.html#ac6456c0bd564f9af350e9468aa0a881a">LIB_EXT_DIR</a> . <span class="stringliteral">&#39;/htmlpurifier-4.4.0-lite/library/HTMLPurifier.auto.php&#39;</span>);</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;</div>
<div class="line"><a name="l00251"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#ae416504e496059947018473e87d50c1c">  251</a></span>&#160;<span class="keyword">function</span> <a class="code" href="../../d6/d75/init_8php.html#ae416504e496059947018473e87d50c1c">error_handler</a>($err_no, $err_str, $err_file, $err_line) {</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;        <span class="comment">// if error_reporting is set to 0, exit. This is also the case when using @</span></div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;        <span class="keywordflow">if</span>(ini_get(<span class="stringliteral">&#39;error_reporting&#39;</span>) == <span class="charliteral">&#39;0&#39;</span>)</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;                <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;        <span class="comment">// handle error</span></div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;        <span class="keywordflow">switch</span>($err_no) {</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;                <span class="keywordflow">case</span> E_WARNING:</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;                        $msg = <span class="stringliteral">&#39;[ErrNo=&#39;</span> . $err_no . <span class="stringliteral">&#39; (WARNING), File=&#39;</span> . $err_file . <span class="stringliteral">&#39;, Line=&#39;</span> . $err_line . <span class="stringliteral">&#39;] &#39;</span> . $err_str;</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;                        <a class="code" href="../../d6/d75/init_8php.html#a9a34f502bb15a266a15ce60e456d93e9">log_error</a>($msg, (!defined(<span class="stringliteral">&#39;INSTALLING&#39;</span>))); <span class="comment">// e.g. warnings are hidden while installing</span></div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;                        <span class="keywordflow">if</span>(!defined(<span class="stringliteral">&#39;INSTALLING&#39;</span>))</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;                                exit;</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;                <span class="keywordflow">case</span> E_USER_ERROR:</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;                        $msg = <span class="stringliteral">&#39;[ErrNo=&#39;</span> . $err_no . <span class="stringliteral">&#39; (USER_ERROR), File=&#39;</span> . $err_file . <span class="stringliteral">&#39;, Line=&#39;</span> . $err_line . <span class="stringliteral">&#39;] &#39;</span> . $err_str;</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;                        <a class="code" href="../../d6/d75/init_8php.html#a9a34f502bb15a266a15ce60e456d93e9">log_error</a>($msg);</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;                        exit;</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;                <span class="keywordflow">case</span> E_USER_WARNING:</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;                        $msg = $err_str;</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;                        set_last_message(<span class="keyword">false</span>, $msg);</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;                        header(<span class="stringliteral">&#39;Location: &#39;</span> . <a class="code" href="../../d6/d75/init_8php.html#a3bf2fe8e42a8a8b0edfa6a8d35d25847">CONST_PROJECT_FULL_URL</a>);</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;                        exit;</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;                <span class="keywordflow">case</span> E_NOTICE:</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;                <span class="keywordflow">case</span> E_USER_NOTICE:</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;                <span class="keywordflow">case</span> 2048: <span class="comment">// E_STRICT in PHP5</span></div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;                        <span class="comment">// ignore</span></div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;                <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;                        <span class="comment">// unknown error. Log in file (only) and continue execution</span></div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;                        $msg = <span class="stringliteral">&#39;[ErrNo=&#39;</span> . $err_no . <span class="stringliteral">&#39; (UNKNOWN_ERROR), File=&#39;</span> . $err_file . <span class="stringliteral">&#39;, Line=&#39;</span> . $err_line . <span class="stringliteral">&#39;] &#39;</span> . $err_str;</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;                        <a class="code" href="../../d6/d75/init_8php.html#a9a34f502bb15a266a15ce60e456d93e9">log_error</a>($msg, <span class="keyword">false</span>);</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;        }</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;}</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;</div>
<div class="line"><a name="l00292"></a><span class="lineno"><a class="code" href="../../d6/d75/init_8php.html#a9a34f502bb15a266a15ce60e456d93e9">  292</a></span>&#160;<span class="keyword">function</span> <a class="code" href="../../d6/d75/init_8php.html#a9a34f502bb15a266a15ce60e456d93e9">log_error</a>($msg, $show_onscreen = <span class="keyword">true</span>) {</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;        global <a class="code" href="../../de/dc4/settings_8dist_8php.html#af21c418e4c577deb3a9ea7299156ae35">$tolc_conf</a>;</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;        <span class="comment">// put in screen</span></div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;        <span class="keywordflow">if</span>($show_onscreen)</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;                print $msg;</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;        <span class="comment">// put in file</span></div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        @error_log(date(<span class="stringliteral">&#39;Y-m-d H:i:s&#39;</span>) . <span class="stringliteral">&#39;: &#39;</span> . $msg . <span class="stringliteral">&quot;\n&quot;</span>, 3, $tolc_conf[<span class="stringliteral">&#39;project_dir&#39;</span>] . <span class="stringliteral">&#39;/log/error.log&#39;</span>);</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;}</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;?&gt;</div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_d422163b96683743ed3963d4aac17747.html">app</a></li><li class="navelem"><a class="el" href="../../dir_4a9513260508d5894bea9849c69369f8.html">common</a></li><li class="navelem"><a class="el" href="../../d6/d75/init_8php.html">init.php</a></li>
    <li class="footer">Generated on Fri Aug 31 2012 22:06:31 for Tolc by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
